<!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Amaze UI Admin user Examples</title>
  <meta name="description" content="这是一个 user 页面">
  <meta name="keywords" content="user">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="icon" type="image/png" href="/Public/assets/i/favicon.png">
  <link rel="apple-touch-icon-precomposed" href="/Public/assets/i/app-icon72x72@2x.png">
  <meta name="apple-mobile-web-app-title" content="Amaze UI" />
  <link rel="stylesheet" href="/Public/assets/css/amazeui.min.css"/>
  <link rel="stylesheet" href="/Public/assets/css/admin.css">
</head>
<body>
<!--[if lte IE 9]>
<p class="browsehappy">你正在使用<strong>过时</strong>的浏览器，Amaze UI 暂不支持。 请 <a href="http://browsehappy.com/" target="_blank">升级浏览器</a>
  以获得更好的体验！</p>
<![endif]-->

<header class="am-topbar am-topbar-inverse admin-header">
<include file="./Application/Admin/View/Share/header.html"/>
</header>

<div class="am-cf admin-main">
  <!-- sidebar start -->
  <include file="./Application/Admin/View/Share/left.html"/>
  <!-- sidebar end -->

  <!-- content start -->
  <div class="admin-content">
    <div class="admin-content-body">
      <div class="am-cf am-padding am-padding-bottom-0">
        <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">添加博文</strong> / <small>Personal information</small></div>
      </div>

      <hr/>

      <div class="am-g">
        <div class="am-u-sm-12 am-u-md-4 am-u-md-push-8">
          <div class="am-panel am-panel-default">
            <div class="am-panel-bd">
              <div class="am-g">
                <div class="am-u-md-4">
                  <img class="am-img-circle am-img-thumbnail" src="http://s.amazeui.org/media/i/demos/bw-2014-06-19.jpg?imageView/1/w/200/h/200/q/80" alt=""/>
                </div>
                <div class="am-u-md-8">
                  <p>你可以使用<a href="#">gravatar.com</a>提供的头像或者使用本地上传头像。 </p>
                  <form class="am-form" enctype="multipart/form-data">
                    <div class="am-form-group">
                      <input type="file" id="user-pic">
                      <p class="am-form-help">请选择要上传的文件...</p>
                      <button type="button" class="am-btn am-btn-primary am-btn-xs">保存</button>
                    </div>
                  </form>
                </div>
              </div>
            </div>
          </div>

          <div class="am-panel am-panel-default">
            <div class="am-panel-bd">
              <div class="user-info">
                <p>等级信息</p>
                <div class="am-progress am-progress-sm">
                  <div class="am-progress-bar" style="width: 60%"></div>
                </div>
                <p class="user-info-order">当前等级：<strong>LV8</strong> 活跃天数：<strong>587</strong> 距离下一级别：<strong>160</strong></p>
              </div>
              <div class="user-info">
                <p>信用信息</p>
                <div class="am-progress am-progress-sm">
                  <div class="am-progress-bar am-progress-bar-success" style="width: 80%"></div>
                </div>
                <p class="user-info-order">信用等级：正常当前 信用积分：<strong>80</strong></p>
              </div>
            </div>
          </div>

        </div>

        <div class="am-u-sm-12 am-u-md-8 am-u-md-pull-4">
          <form class="am-form am-form-horizontal" name="article_form" action="/Admin/Article/addArticle?id=<{$res.id}>" enctype="multipart/form-data" method="post">
            <div class="am-form-group">
              <label for="user-name" class="am-u-sm-3 am-form-label">博文标题</label>
              <div class="am-u-sm-9">
                <input type="text" name="title" id="user-name" value="<{$res.title}>" placeholder="博文标题">
              </div>
            </div>
			<div class="am-form-group">
				  <label for="doc-select-1" class="am-u-sm-3 am-form-label">文章类别</label>
					 <div class="am-u-sm-9">
					
						  <select name="type_id" id="doc-select-1" >
								<option>--请选择类别--</option>
							 <volist name="type_ret" id="vo">
								<option value="<{$vo.id}>"><{$vo.name}></option>
							 </volist>
						  </select>
						  
					 </div>
				  <span class="am-form-caret"></span>
			</div>
            <div class="am-form-group">
              <label for="user-email" class="am-u-sm-3 am-form-label">作者</label>
              <div class="am-u-sm-9">
                <input type="email" name="user" id="user-email" value="<{$res.user}>" placeholder="作者">
              </div>
            </div>

            <div class="am-form-group">
              <label for="user-phone" class="am-u-sm-3 am-form-label">封面图</label>
              <div class="am-u-sm-9">
                <input type="file" id="user-pic" name="picture"/>
                <img src="<{$res.picture}>" style="width:100px"/>
              </div>
            </div>

           

            <div class="am-form-group">
              <label for="user-weibo" class="am-u-sm-3 am-form-label">博文简介</label>
              <div class="am-u-sm-9">
                <textarea type="text" name="present" id="user-weibo" placeholder="输入博文简介"><{$res.present}></textarea>
              </div>
            </div>

            <div class="am-form-group">
              <label for="user-intro" class="am-u-sm-3 am-form-label">博文内容</label>
              <div class="am-u-sm-9">
					<script id="container" name="content" type="text/plain"><{$res.content}></script>
              </div>
              
            </div>

            <div class="am-form-group">
              <div class="am-u-sm-9 am-u-sm-push-3">
                <button type="button" onclick="do_submit()" class="am-btn am-btn-primary">保存修改</button>
              </div>
            </div>
          </form>
        </div>
      </div>
    </div>

    <include file="./Application/Admin/View/Share/footer.html"/>

  </div>
  <!-- content end -->

</div>

<a href="#" class="am-icon-btn am-icon-th-list am-show-sm-only admin-menu" data-am-offcanvas="{target: '#admin-offcanvas'}"></a>



<!--[if lt IE 9]>
<script src="http://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="assets/js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->

<!--[if (gte IE 9)|!(IE)]><!-->
<script src="/Public/assets/js/jquery.min.js"></script>
<!--<![endif]-->
<script src="/Public/assets/js/amazeui.min.js"></script>

<script src="/Public/assets/js/app.js"></script>
</script>
<!-- 配置文件 -->
<script type="text/javascript" src="/Public/tools/UEditor/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="/Public/tools/UEditor/ueditor.all.js"></script>
<!-- 实例化编辑器 -->
<script type="text/javascript">
var ue = UE.getEditor('container');
function do_submit(){
	document.article_form.submit();
}
</script>
</body>
</html>
